package com.example.demo.javaTest;

import com.example.demo.pojo.BigStar;
import com.example.demo.pojo.Star;
import com.example.demo.utils.ProxyUtil;
import org.junit.jupiter.api.Test;

public class DynamicProxy {
    @Test
    public void testDynamicProxy() {
        BigStar s = new BigStar("a");
        Star starProxy = ProxyUtil.createProxy(s);
        String rs = starProxy.sing("aa");
        System.out.println(rs);
        starProxy.dance();
    }
}
